<?php

namespace App\Http\Model;


class GoodsImg extends Base
{

    public $timestamps = false;

    /**
     * 定义数据库表名
     *
     * @var string
     */
    protected $table = 'goods_img';

    /**
     * 定义主键名
     *
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * The attributes that aren't mass assignable.
     *
     * @var array
     */
    protected $guarded = [];


    public function img()
    {
        return $this ->hasOne(Img::class, 'img_id', 'id');
    }

}
